Optimal. Leaf size=77 \[ \frac {1466 x}{625}-\frac {54 x^2}{125}+\frac {8 x^3}{75}+\frac {1331 (443+247 x)}{96875 \left (2+3 x+5 x^2\right )}+\frac {3819607 \tan ^{-1}\left (\frac {3+10 x}{\sqrt {31}}\right )}{96875 \sqrt {31}}-\frac {10769 \log \left (2+3 x+5 x^2\right )}{6250} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 77, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.240, Rules used = {1674, 1671,
648, 632, 210, 642} \begin {gather*} \frac {3819607 \text {ArcTan}\left (\frac {10 x+3}{\sqrt {31}}\right )}{96875 \sqrt {31}}+\frac {8 x^3}{75}-\frac {54 x^2}{125}+\frac {1331 (247 x+443)}{96875 \left (5 x^2+3 x+2\right )}-\frac {10769 \log \left (5 x^2+3 x+2\right )}{6250}+\frac {1466 x}{625} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 210
Rule 632
Rule 642
Rule 648
Rule 1671
Rule 1674
Rubi steps
\begin {align*} \int \frac {\left (3-x+2 x^2\right )^3}{\left (2+3 x+5 x^2\right )^2} \, dx &=\frac {1331 (443+247 x)}{96875 \left (2+3 x+5 x^2\right )}+\frac {1}{31} \int \frac {\frac {372701}{625}-\frac {230981 x}{625}+\frac {37882 x^2}{125}-\frac {2604 x^3}{25}+\frac {248 x^4}{5}}{2+3 x+5 x^2} \, dx\\ &=\frac {1331 (443+247 x)}{96875 \left (2+3 x+5 x^2\right )}+\frac {1}{31} \int \left (\frac {45446}{625}-\frac {3348 x}{125}+\frac {248 x^2}{25}+\frac {121 (2329-2759 x)}{625 \left (2+3 x+5 x^2\right )}\right ) \, dx\\ &=\frac {1466 x}{625}-\frac {54 x^2}{125}+\frac {8 x^3}{75}+\frac {1331 (443+247 x)}{96875 \left (2+3 x+5 x^2\right )}+\frac {121 \int \frac {2329-2759 x}{2+3 x+5 x^2} \, dx}{19375}\\ &=\frac {1466 x}{625}-\frac {54 x^2}{125}+\frac {8 x^3}{75}+\frac {1331 (443+247 x)}{96875 \left (2+3 x+5 x^2\right )}-\frac {10769 \int \frac {3+10 x}{2+3 x+5 x^2} \, dx}{6250}+\frac {3819607 \int \frac {1}{2+3 x+5 x^2} \, dx}{193750}\\ &=\frac {1466 x}{625}-\frac {54 x^2}{125}+\frac {8 x^3}{75}+\frac {1331 (443+247 x)}{96875 \left (2+3 x+5 x^2\right )}-\frac {10769 \log \left (2+3 x+5 x^2\right )}{6250}-\frac {3819607 \text {Subst}\left (\int \frac {1}{-31-x^2} \, dx,x,3+10 x\right )}{96875}\\ &=\frac {1466 x}{625}-\frac {54 x^2}{125}+\frac {8 x^3}{75}+\frac {1331 (443+247 x)}{96875 \left (2+3 x+5 x^2\right )}+\frac {3819607 \tan ^{-1}\left (\frac {3+10 x}{\sqrt {31}}\right )}{96875 \sqrt {31}}-\frac {10769 \log \left (2+3 x+5 x^2\right )}{6250}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 77, normalized size = 1.00 \begin {gather*} \frac {1466 x}{625}-\frac {54 x^2}{125}+\frac {8 x^3}{75}+\frac {1331 (443+247 x)}{96875 \left (2+3 x+5 x^2\right )}+\frac {3819607 \tan ^{-1}\left (\frac {3+10 x}{\sqrt {31}}\right )}{96875 \sqrt {31}}-\frac {10769 \log \left (2+3 x+5 x^2\right )}{6250} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.12, size = 61, normalized size = 0.79
method | result | size |
risch | \(\frac {8 x^{3}}{75}-\frac {54 x^{2}}{125}+\frac {1466 x}{625}+\frac {\frac {328757 x}{484375}+\frac {589633}{484375}}{x^{2}+\frac {3}{5} x +\frac {2}{5}}-\frac {10769 \ln \left (100 x^{2}+60 x +40\right )}{6250}+\frac {3819607 \arctan \left (\frac {\left (3+10 x \right ) \sqrt {31}}{31}\right ) \sqrt {31}}{3003125}\) | \(60\) |
default | \(\frac {8 x^{3}}{75}-\frac {54 x^{2}}{125}+\frac {1466 x}{625}-\frac {121 \left (-\frac {2717 x}{775}-\frac {4873}{775}\right )}{625 \left (x^{2}+\frac {3}{5} x +\frac {2}{5}\right )}-\frac {10769 \ln \left (5 x^{2}+3 x +2\right )}{6250}+\frac {3819607 \arctan \left (\frac {\left (3+10 x \right ) \sqrt {31}}{31}\right ) \sqrt {31}}{3003125}\) | \(61\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.51, size = 62, normalized size = 0.81 \begin {gather*} \frac {8}{75} \, x^{3} - \frac {54}{125} \, x^{2} + \frac {3819607}{3003125} \, \sqrt {31} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) + \frac {1466}{625} \, x + \frac {1331 \, {\left (247 \, x + 443\right )}}{96875 \, {\left (5 \, x^{2} + 3 \, x + 2\right )}} - \frac {10769}{6250} \, \log \left (5 \, x^{2} + 3 \, x + 2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.30, size = 88, normalized size = 1.14 \begin {gather*} \frac {9610000 \, x^{5} - 33154500 \, x^{4} + 191815600 \, x^{3} + 22917642 \, \sqrt {31} {\left (5 \, x^{2} + 3 \, x + 2\right )} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) + 111226140 \, x^{2} - 31047027 \, {\left (5 \, x^{2} + 3 \, x + 2\right )} \log \left (5 \, x^{2} + 3 \, x + 2\right ) + 145678362 \, x + 109671738}{18018750 \, {\left (5 \, x^{2} + 3 \, x + 2\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.07, size = 78, normalized size = 1.01 \begin {gather*} \frac {8 x^{3}}{75} - \frac {54 x^{2}}{125} + \frac {1466 x}{625} + \frac {328757 x + 589633}{484375 x^{2} + 290625 x + 193750} - \frac {10769 \log {\left (x^{2} + \frac {3 x}{5} + \frac {2}{5} \right )}}{6250} + \frac {3819607 \sqrt {31} \operatorname {atan}{\left (\frac {10 \sqrt {31} x}{31} + \frac {3 \sqrt {31}}{31} \right )}}{3003125} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 2.33, size = 62, normalized size = 0.81 \begin {gather*} \frac {8}{75} \, x^{3} - \frac {54}{125} \, x^{2} + \frac {3819607}{3003125} \, \sqrt {31} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) + \frac {1466}{625} \, x + \frac {1331 \, {\left (247 \, x + 443\right )}}{96875 \, {\left (5 \, x^{2} + 3 \, x + 2\right )}} - \frac {10769}{6250} \, \log \left (5 \, x^{2} + 3 \, x + 2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.43, size = 61, normalized size = 0.79 \begin {gather*} \frac {1466\,x}{625}-\frac {10769\,\ln \left (5\,x^2+3\,x+2\right )}{6250}+\frac {\frac {328757\,x}{484375}+\frac {589633}{484375}}{x^2+\frac {3\,x}{5}+\frac {2}{5}}+\frac {3819607\,\sqrt {31}\,\mathrm {atan}\left (\frac {10\,\sqrt {31}\,x}{31}+\frac {3\,\sqrt {31}}{31}\right )}{3003125}-\frac {54\,x^2}{125}+\frac {8\,x^3}{75} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________